home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Graphics Samples / ShapePart Browser ƒ / ShapeSetup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-15  |  1010 b   |  51 lines  |  [TEXT/KAHL]

  1. /*
  2.  *    ShapeSetup.h
  3.  *
  4.  *    Robert Dierkes,  April 26, 1993
  5.  *
  6.  *    Change History:
  7.  *
  8.  *       4/93    ???        New
  9.  *       4/96    bob        Updated #includes to support changed GX Library names.
  10.  *                    Changed boolean to Boolean.
  11.  *                    Added the copyright info.
  12.  *
  13.  *
  14.  *        © Apple Computer, Inc. 1990 - 1996  All rights reserved
  15.  *
  16.  */
  17.  
  18. #include <GXTypes.h>
  19.  
  20. #define        kRowCount        3
  21. #define        kColumnCount    3
  22.  
  23. enum
  24. {
  25.     kTrapizoidPolygon,    ///
  26.     kOvalPath,
  27.     kArrowPolygon,
  28.  
  29.     kPatternedPolygon,
  30.     kWordGlyphs,
  31.     kArchCurve,
  32.  
  33.     kCapsLine,
  34.     kDashedOvalPath,
  35.     kJoinPath,            ///
  36.  
  37.     kShapeCount
  38. };
  39.  
  40. #define        kFixOneHalf        (fixed1 >> 1)
  41. #define        kHalfInch        IntToFixed (36)
  42. #define        kQuarterInch    IntToFixed (18)
  43. #define        kEigthInch        IntToFixed (9)
  44.  
  45.  
  46. Boolean CreateShapesFrame (WindowPtr pWindow, register long numRows, register long numCols,
  47.             gxShape *pBoxSet);
  48. Boolean CreateHitTestShapes (WindowPtr pWindow, gxShape **h1stHitShape, gxShape *pBoxSet,
  49.              register long shapeCount);
  50. void DisposeHitTestShapes (gxShape **h1stHitShape, gxShape *pBoxes);
  51.